package {
	
	import net.flashpunk.Engine;
	import net.flashpunk.FP;
	import flash.display.LoaderInfo;
	/**
	 * © 2012 TheJavaArcade.com
	 */	
	[SWF(width = "640", height = "480", frameRate = "25")]
	
	public class Main extends Engine{
		
		public function Main() {
			super(640, 480, 29, false);
			FP.world = new TitleWorld;
			FP.screen.scale = 2;
			FP.screen.color = 0x000000;
			
			try {
				var paramObjuserName:Object = LoaderInfo(this.root.loaderInfo).parameters.userName;
				var paramObjuserType:Object = LoaderInfo(this.root.loaderInfo).parameters.userType;
				Assets.userNameStr = paramObjuserName.toString();
				Assets.userTypeStr = paramObjuserType.toString();
				trace(paramObjuserName.toString()+" "+paramObjuserType.toString);				
			}catch (errorObj:Error) {
				Assets.userNameStr = "";
				Assets.userTypeStr = "guest";
			}

			//text1.text = paramObj.toString()
		}
		
		override public function init():void{
			
		}

	}
		
}
